package base;

/**
 * @author lwmzzz
 * @version 1.0
 * @date 2021/3/28 19:45
 * @description 接口测试类
 */
public class Interface implements a, b {


    @Override
    public void hello() {
        System.out.println("=============================");
        a.super.hello();
        b.super.hello();
    }

    public static void main(String[] args) {
        Interface anInterface = new Interface();
        anInterface.hello();
    }
}

interface a {
    default void hello() {
        System.out.println("hello");
    }
}

interface b {
    default void hello() {
        System.out.println("123213");
    }
}